package com.freemalll.merchant.domain.entity.merchantParameters;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.freemalll.merchant.common.AbstractBaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 参数表
 * </p>
 *
 * @author songshixiong
 * @since 2025-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mer_params")
@Schema(description = "参数表")
public class MerParams extends AbstractBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "模板编码")
    @TableField("param_code")
    private String paramCode;

    @Schema(description = "模板名称(参数名称)")
    @TableField("param_name")
    private String paramName;

    @Schema(description = "相关描述")
    @TableField("remark")
    private String remark;

    @Schema(description = "应用板块")
    @TableField("apply_location")
    private String applyLocation;


    public void initUpdate() {
        this.setUpdateTime(null);
        this.setUpdateEmpId(null);
        this.updateEmpName = null;
    }
}
